#define _CRT_SECURE_NO_WARNINGS

#include"Queue.h"

void test1()
{
	Queue q;
	QueueInit(&q);
	
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePush(&q, 6);

	int sz = QueueSize(&q);
	printf("%d\n", sz);

	QueuePrint(&q);
	
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePrint(&q);

	QueueDataType data = QueueFront(&q);
	printf("%d\n", data);
	data = QueueBack(&q);
	printf("%d\n", data);

	QueueDestroy(&q);
}

int main()
{
	test1();

	return 0;
}